import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 高生平
 * Date: 2025-09-05
 * Time: 14:59
 */
public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int year = sc.nextInt();
            if ((year % 100 != 0 && year % 4 == 0) || (year % 400 == 0)) {
                System.out.println(year + "是闰年");
            } else {
                System.out.println(year + "是平年");
            }
        }
    }
}
